package com.vids.model.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author ly
 */
@TableName("t_system_time")
public class SystemTime extends Model<SystemTime> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @JsonIgnore
    private String id;
    /**
     * 服务器标识符
     */
    @JsonProperty("VIIDServerID")
    @TableField("viid_server_id")
    private String viidServerId;
    /**
     * 校时模式
     */
    @JsonProperty("TimeMode")
    @TableField("time_mode")
    private String timeMode;
    /**
     * 日期时间
     */
    @JsonFormat(pattern = "yyyyMMddHHmmss", timezone = "GMT+8")
    @JsonProperty("LocalTime")
    @TableField("local_time")
    private Date localTime;
    /**
     * 时区
     */
    @JsonProperty("TimeZone")
    @TableField("time_zone")
    private String timeZone;

    public String getId() {
	return id;
    }

    public void setId(String id) {
	this.id = id;
    }

    public String getViidServerId() {
	return viidServerId;
    }

    public void setViidServerId(String viidServerId) {
	this.viidServerId = viidServerId;
    }

    public String getTimeMode() {
	return timeMode;
    }

    public void setTimeMode(String timeMode) {
	this.timeMode = timeMode;
    }

    public Date getLocalTime() {
	return localTime;
    }

    public void setLocalTime(Date localTime) {
	this.localTime = localTime;
    }

    public String getTimeZone() {
	return timeZone;
    }

    public void setTimeZone(String timeZone) {
	this.timeZone = timeZone;
    }

    @Override
    public Serializable pkVal() {
	return this.id;
    }

    @Override
    public String toString() {
	return "TSystemTime{" + ", id=" + id + ", viidServerId=" + viidServerId + ", timeMode=" + timeMode
		+ ", localTime=" + localTime + ", timeZone=" + timeZone + "}";
    }
}
